<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/white/common/taglibs.jsp"%>

<%@include file="/white/common/common.jsp"%>

 <sx:head/>

<body onload="displayResult()">
	<s:form method="post" action="" theme="xhtml" id="searchForm">
		<div id="div_title">
			<h3>
				角色:${role.name}&nbsp;功能维护
			</h3>
			<table>
				<tr>
					<td width="80" align="right">
						功能模块:
					</td>
					<td>
						<s:select list="funcModuleList" listKey="funcModuleId"
							listValue="name" headerKey="" headerValue="=== 请选择 ==="
							name="query_funcModuleId" id="query_funcModuleId" />
					</td>
					<td width="80" align="right">
						<authz:authorize ifAnyGranted="CA_FUNCTION_SEARCH">
							<s:submit cssClass="submit_search" value="搜索"
								action="roleAction-%{role.roleId}!toRoleFuncs" />
						</authz:authorize>
					</td>
				</tr>
			</table>



			<s:optiontransferselect label="角色功能" name="roleFunctions" multiple="true"
				leftTitle="功能" list="#request.funcWithRoleList" listKey="FUNCTION_ID"
				listValue="NAME" headerKey="headerKey" headerValue="--- 请选择功能---"
				emptyOption="false" allowUpDownOnLeft="false"
				cssStyle="width:250px;height:350px;" doubleName="rightRoles"
				doubleMultiple="true" rightTitle="非角色功能"
				doubleList="#request.funcWithOutRoleList" doubleListKey="FUNCTION_ID"
				doubleListValue="NAME" doubleHeaderKey="doubleHeaderKey"
				doubleHeaderValue="--- 请选择功能 ---" doubleEmptyOption="false"
				allowUpDownOnRight="false"
				doubleCssStyle="width:250px;height:350px;" />
		</div>

		<div id="div_button">
			<s:submit key="保存"
				action="roleAction-%{role.roleId}!saveFuncWithRole"
				cssClass="input_button" />

			<s:submit key="返回"
				action="roleAction!queryByPage"
				cssClass="input_button" />
		</div>


	</s:form>
</body>
</html>
